# 2. 参照下列代码,定义函数,计算社保缴纳费用.
def salary_before(salary_before_tax):
    '''

    :param salary_before_tax: #变量定义薪资
    :return: #返回社保缴纳费用
    '''
    return salary_before_tax * (0.08 + 0.02 + 0.002 + 0.12) + 3
dict = salary_before(5841)
print(dict)